package com.example.designpatterns.project.darklaunch.two;

/**
 * @author yanyun zhu
 * @version 1.0
 * @date 2022/1/24 10:18
 */
public class UserPromotionDarkRule implements IDarkFeature{

    private String key;
    private boolean enabled;
    private int percentage;

    public UserPromotionDarkRule(String userKey){
        this.key = userKey;
        this.enabled = true;


    }


    @Override
    public boolean enabled() {
        return true;
    }

    @Override public boolean dark(long darkTarget) {
        // 灰度规则自己想怎么写就怎么写
        return false;
    }

    @Override public boolean dark(String darkTarget) {
        // 灰度规则自己想怎么写就怎么写
        return false;
    }

}
